package main

// @author lxb
// @date 2022-01-24
// 具体装饰

type TomatoTopping struct {
	pizza Pizza
}

func (c *TomatoTopping) getPrice() int {
	pizzaPrice := c.pizza.getPrice()
	return pizzaPrice + 7
}
